import request from '@/utils/request'
// 给座位分配人员
export function schoolClassroomseatSeatInfo(data) {
  return request({
    url: '/school/class-room-seat/seat-info',
    method: 'get',
    params: data
  })
}
// 获取所有的班级
export function classPage(query) {
  return request({
    url: '/school/school-class/page',
    method: 'get',
    params: query
  })
}

// 创建班级
export function classCreate(data) {
  return request({
    url: '/school/school-class/add',
    method: 'post',
    data
  })
}

// 修改班级
export function classUpdate(data) {
  return request({
    url: '/school/school-class/add',
    method: 'post',
    data
  })
}

// 删除班级
export function classDelete(data) {
  return request({
    url: '/school/school-class/del',
    method: 'get',
    params: data
  })
}

// 班级教室模块对应接口
export function classRoomPage(data) {
  return request({
    url: '/school/class-room/page',
    method: 'get',
    params: data
  })
}
// 编辑教室信息接口
export function classRoomUpdate(data) {
  return request({
    url: '/school/class-room/add',
    method: 'post',
    data
  })
}
// 删除教室接口
export function classRoomDelete(data) {
  return request({
    url: '/school/class-room/del',
    method: 'get',
    params: data
  })
}
// 分享教室接口
export function classSharePage(data) {
  return request({
    url: '/school/class-share/page',
    method: 'get',
    params: data
  })
}
// 编辑分享教室接口
export function classShareUpdate(data) {
  return request({
    url: '/school/class-share/add',
    method: 'post',
    data
  })
}
// 删除教室分享接口
export function classShareDelete(data) {
  return request({
    url: '/school/class-share/del',
    method: 'post',
    data
  })
}
// 教室座位接口
export function classRoomSeatPage(data) {
  return request({
    url: '/school/class-room-seat/page',
    method: 'get',
    params: data
  })
}
// 编辑教室座位接口
export function classRoomSeatUpdate(data) {
  return request({
    url: '/school/class-room-seat/add',
    method: 'post',
    data
  })
}
// 删除教室座位接口
export function classRoomSeatDelete(data) {
  return request({
    url: '/school/class-room-seat/del',
    method: 'get',
    params: data
  })
  // 获取班级用户接口
} export function classUserPage(data) {
  return request({
    url: '/school/class-user/page',
    method: 'get',
    params: data
  })
}
// 编辑班级用户接口
export function classUserUpdate(data) {
  return request({
    url: '/school/class-user/add',
    method: 'post',
    data
  })
}
// 修改桌位状态
export function classSeatStatusUpdate(data) {
  return request({
    url: '/school/class-room-seat/seat-status-update',
    method: 'post',
    data
  })
}
// 删除班级用户接口
export function classUserDelete(data) {
  return request({
    url: '/school/class-user/del',
    method: 'post',
    data
  })
  // 添加班级用户接口
} export function classUserCreate(data) {
  return request({
    url: '/school/class-user/add',
    method: 'post',
    data
  })
}

// 查询班级讨论
export function classDiscussPage(data) {
  return request({
    url: '/school/class-discuss/page',
    method: 'get',
    params: data
  })
}
// 添加修改班级讨论
export function classDiscussAdd(data) {
  return request({
    url: '/school/class-discuss/add',
    method: 'post',
    data
  })
}
// 删除班级讨论
export function classDiscussDel(data) {
  return request({
    url: '/school/class-discuss/del',
    method: 'post',
    data
  })
}
